package cn.wonderland.system.mapper;

import cn.wonderland.system.domain.Menu;
import cn.wonderland.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wonderland
 * @since 2023-05-10
 */
public interface MenuMapper extends BaseMapper<Menu> {

    void addMiddle(@Param("roleId") Long id, @Param("menus") List<Long> menus);

    void deleteMiddle(@Param("roleId") Long id);

    List<Menu> findByLogininfoId(Long logininfoId);
}
